package com.gitee.chili.leisure.domain;

import com.gitee.chili.leisure.base.GenerateId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * Innings
 *
 * @author week solider
 * @since 2020.09.04
 */
@Data
@Entity
@Accessors(chain = true)
@Table(name = "leisure_innings")
@EqualsAndHashCode(callSuper = true)
public class Innings extends GenerateId<Long> {

    private Integer innings;

    private BigDecimal expend;

    @OneToOne
    @JoinColumn(name = "currency_id")
    private Currency currency;

    public Innings() {
    }
}
